package control;

import dao.DiaryDao;
import entity.DiaryInfo;

import javax.servlet.ServletException;
import javax.servlet.annotation.WebServlet;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import java.io.IOException;

@WebServlet("/diary/edit")
public class Edit extends HttpServlet {
    @Override
    protected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {
        Integer id=Integer.valueOf(req.getParameter("id"));
        String w=req.getParameter("weather");
        String m=req.getParameter("mood");
        String c=req.getParameter("contents");
        String r=req.getParameter("reportTime");
        String d=req.getParameter("diaryDay");
        DiaryDao dd=new DiaryDao();
        req.getRequestDispatcher("edit.jsp").forward(req,resp);
    }
}
